<{php}>

$rows = array( array('UID','用户名','昵称','邮箱','部门','角色','状态','添加时间') );
foreach($list as $u){
	$rows[] = array( $u['id'], $u['account'], $u['name'], $u['email'], $u['dept_name'], 
			join("|", RoleHelper::getByUser($u['id'])),
			$u['is_disa']?'禁用':'启用', date('Y/m/d H:i:s', $u['addtime']) );
}
Exporter::csv($rows, '系统用户');

LoggerHelper::manage("导出系统用户表");

<{/php}>
